<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, maximum-scale=1,minimum-scale=1, user-scalable=no"
    />
    <title>选择自己的爱好</title>
    <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
  </head>
  <body>
    <div class="box">
      <h3>选择你的爱好:</h3>
      <ul>
        <li><input type="checkbox" value="音乐" class="my-hobby" />音乐</li>
        <li><input type="checkbox" value="登山" class="my-hobby" />登山</li>
        <li><input type="checkbox" value="游泳" class="my-hobby" />游泳</li>
        <li><input type="checkbox" value="阅读" class="my-hobby" />阅读</li>
        <li><input type="checkbox" value="打球" class="my-hobby" />打球</li>
        <li><input type="checkbox" value="跑步" class="my-hobby" />跑步</li>
        <li><input type="checkbox" value="其他" class="my-hobby" />其他</li>
      </ul>
      <hr />
      <div>
        <button class="btn">点击显示已选择爱好:</button>
      </div>
      <div class="hobby"></div>
    </div>
    <script src="./js/work4.js"></script>
  </body>
</html>
